From: Giovanni Campagna Date: Wed, 20 Feb 2013 18:33:29 +0000 (+0100) Subject: Workspace: fix stacking of window clones X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~4673 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=ad71b969b261bff758e860d99a1f14101e166bb5;p=gnome-shell.git Workspace: fix stacking of window clones We must set the stack above property of window clones, or they will not stack themselves properly when a drag is cancelled. https://bugzilla.gnome.org/show_bug.cgi?id=694292 --- diff --git a/js/ui/workspace.js b/js/ui/workspace.js index 049745f18..bf951d08f 100644 --- a/js/ui/workspace.js +++ b/js/ui/workspace.js @@ -1349,6 +1349,11 @@ const Workspace = new Lang.Class({ overlay.connect('show-close-button', Lang.bind(this, this._onShowOverlayClose)); + if (this._windows.length == 0) + clone.setStackAbove(null); + else + clone.setStackAbove(this._windows[this._windows.length - 1].actor); + this._windows.push(clone); this._windowOverlays.push(overlay);